<template>
<el-row class="tac">
  <el-col :span="18">
    <el-menu
      default-active="1"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-menu-item index="1">
        <span slot="title">新建笔记</span>
      </el-menu-item>
      <el-menu-item index="2">
        <span slot="title">最新笔记</span>
      </el-menu-item>
      <el-menu-item index="3">
        <span slot="title">我的收藏</span>
      </el-menu-item>
      <el-menu-item index="4">
        <span slot="title">我的分享</span>
      </el-menu-item>
      <el-submenu index="1">
        <template slot="title">
          <span>我的笔记</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1">笔记1</el-menu-item>
          <el-menu-item index="1-2">笔记2</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      
      <el-menu-item index="5">
        <span slot="title">来自Python语言程序设计</span>
      </el-menu-item>
      <el-menu-item index="6">
        <span slot="title">来自计算机组成原理与构造</span>
      </el-menu-item>
      <el-menu-item index="7">
        <span slot="title">用户自定义文件夹</span>
      </el-menu-item>
      <el-menu-item index="8">
        <span slot="title">用户自定义文件夹</span>
      </el-menu-item>
      <el-menu-item index="9">
        <span slot="title">回收站</span>
      </el-menu-item>
      <el-menu-item index="10" style="height:36px;line-height:36px">
        <span slot="title" style="font-size:12px;color:grey">帮助中心</span>
      </el-menu-item>
    </el-menu>
  </el-col>    
</el-row>
</template>
<script>
    export default{
      methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
    }
</script>
<style scoped>
</style>